# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=wyd
pkgver=0.2
pkgrel=11
groups=('blackarch' 'blackarch-cracker' 'blackarch-forensic')
pkgdesc='Gets keywords from personal files. IT security/forensic tool.'
arch=('any')
url='http://www.remote-exploit.org/?page_id=418'
license=('GPL')
depends=('perl')
source=("https://dl.packetstormsecurity.net/Crackers/$pkgname-$pkgver.tar.gz")
sha512sums=('3908072d49e7a4724e1020cbe101f337b9cee892ed211b56b1a85bccef324a6f3ba5d56570cdf493a44f0d26510fad552172c5d0d58616601c49d5f7b622447c')

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/bin"
  install -dm 755 "$pkgdir/usr/share/$pkgname"

  cp -r * "$pkgdir/usr/share/$pkgname"

  cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
exec perl /usr/share/$pkgname/$pkgname.pl
EOF

  chmod +x "$pkgdir/usr/bin/$pkgname"
  chmod +x "$pkgdir/usr/share/$pkgname/$pkgname.pl"
}

